//
//  JEHMoreCollectionViewCell.m
//  SinaNews
//
//  Created by 蒋恩浩 on 15/12/4.
//  Copyright © 2015年 JEH. All rights reserved.
//

#import "JEHMoreCollectionViewCell.h"

@interface JEHMoreCollectionViewCell ()

@end

@implementation JEHMoreCollectionViewCell

- (void)dealloc
{
    [_titleLabel release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self nightMode];
        self.titleLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        [_titleLabel release];
        [_titleLabel nightMode];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.layer.borderWidth = 0.4;
        _titleLabel.layer.borderColor = [UIColor grayColor].CGColor;
        [self addSubview:self.titleLabel];
    }
    return self;
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    [super applyLayoutAttributes:layoutAttributes];
    self.titleLabel.frame = CGRectMake(0, 0, self.width, self.height);
}



/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
